﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Admin/PMAdmin.Master"
    CodeBehind="RegisterBonusRightAnnouncement.aspx.cs" Inherits="PM.Site.Admin.RegisterBonusRightAnnouncement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="form_left">
        <div style="text-align: center; float: left;">
            <asp:Panel ID="pnlOverviewBonus" runat="server" Font-Size="Medium" GroupingText="Overview Bonus Issue Announcements">
                <div style="padding: 5px;">
                    <asp:DataList ID="dlBonus" DataKeyField="CompanyId" runat="server" Visible="true"
                        RepeatDirection="Horizontal" CellPadding="0" CellSpacing="0" Font-Size="Small"
                        ItemStyle-BackColor="#F6F4F5" ItemStyle-BorderColor="#6B6B6B" ItemStyle-BorderWidth="1px"
                        HeaderStyle-BackColor="#444444" HeaderStyle-Height="30px" RepeatColumns="1" RepeatLayout="Flow">
                        <AlternatingItemStyle BackColor="#F9F9F9" />
                        <HeaderTemplate>
                            <div style="padding-bottom: 0px; margin: 0px; color: White;">
                                <div style="width: 70px; float: left; text-align: center; font-weight: bold; padding-left: 5px;">
                                    Company Id</div>
                                <div style="width: 170px; float: left; text-align: center; font-weight: bold;">
                                    Name</div>
                                <div style="width: 100px; float: left; text-align: center; font-weight: bold;">
                                    Date of Announcement</div>
                                <div style="width: 120px; float: left; text-align: center; font-weight: bold;">
                                    Proportion<br />
                                    <div style="font-size: smaller">
                                        (per share)</div>
                                </div>
                                <div style="width: 100px; float: left; text-align: center; font-weight: bold;">
                                    Issue Value<br />
                                    <div style="font-size: smaller">
                                        (per share)</div>
                                </div>
                                <div style="width: 100px; float: left; text-align: center; font-weight: bold;">
                                    No.of New Shares Listed</div>
                                <div style="width: 80px; float: left; text-align: center; font-weight: bold;">
                                    XD</div>
                                <div style="width: 80px; float: left; text-align: center; font-weight: bold;">
                                    Issue Date</div>
                                <div style="width: 250px; float: left; text-align: center; font-weight: bold;">
                                    Remarks</div>
                            </div>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <div style="float: none; margin-bottom: 0px; min-height: 15px; font-size: smaller;
                                text-align: center;">
                                <div style="width: 70px; float: left; text-align: center; min-height: 12px;">
                                    <label>
                                        <%# Eval("CompanyId")%></label></div>
                                <div style="width: 170px; float: left; min-height: 12px; text-align: center;">
                                    <label>
                                        <%# Eval("Name")%></label></div>
                                <div style="width: 100px; float: left; min-height: 12px; text-align: center;">
                                    <label>
                                        <%# ((DateTime)Eval("AnnouncedDate")).ToShortDateString() %></label></div>
                                <div style="width: 100px; float: left; text-align: right; min-height: 12px; padding: 0px 20px 15px 0px;">
                                    <label>
                                        <%# Eval("Propotion", "{0:0.0000}")%></label></div>
                                <div style="width: 90px; float: left; text-align: right; min-height: 12px; padding: 0px 10px 15px 0px;">
                                    <label>
                                        <%# Eval("ValuePerShare", "{0:0.00}")%></label></div>
                                <div style="width: 100px; float: left; min-height: 12px;">
                                    <label>
                                        <%# Eval("NoOfNewSharesListed")%></label></div>
                                <div style="width: 80px; float: left; min-height: 12px; text-align: center;">
                                    <label>
                                        <%# ((DateTime)Eval("XD")).ToShortDateString() %></label></div>
                                <div style="width: 80px; float: left; min-height: 12px; text-align: center;">
                                    <label>
                                        <%# ((DateTime)Eval("Payment")).ToShortDateString()%></label></div>
                                <div style="width: 250px; float: left; min-height: 12px; text-align: center;">
                                    <label>
                                        <%# Eval("Remarks")%></label></div>
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
                </div>
            </asp:Panel>
        </div>
        <br style="clear: both;" />
        <br />
        <div style="text-align: left;">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="g1" />
        </div>
        <div style="float: left;">
            <asp:Panel ID="Panel2" runat="server" GroupingText="Add New Bonus Issue Announcement"
                Font-Size="Medium">
                <table style="font-size: smaller; float: left;" id="Table2">
                    <tr>
                        <td style="width: 170px">
                            *Company Id
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbBonusCompId" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="Please enter the Company Id"
                                ControlToValidate="txbBonusCompId" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            *Company Name
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbBonusCompName" runat="server" TextMode="SingleLine" Width="325px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="Please enter the Company Name"
                                ControlToValidate="txbBonusCompName" Display="Dynamic" SetFocusOnError="True"
                                ValidationGroup="g1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            *Date of Announcement
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbBonusAnnuDate" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="Please enter the Date od Announcement"
                                ControlToValidate="txbBonusAnnuDate" Display="Dynamic" SetFocusOnError="True"
                                ValidationGroup="g1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            *Proportion<br />
                            <div style="font-size: smaller">
                                (per share)</div>
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbBonusPropostion" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ErrorMessage="Please enter the Propotion(per share)"
                                ControlToValidate="txbBonusPropostion" Display="Dynamic" SetFocusOnError="True"
                                ValidationGroup="g1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            *Issue Value<br />
                            <div style="font-size: smaller">
                                (per share)</div>
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbBonusIssueValue" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ErrorMessage="Please enter the Rate od Dividend"
                                ControlToValidate="txbBonusIssueValue" Display="Dynamic" SetFocusOnError="True"
                                ValidationGroup="g1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            *No.of New Shares Listed
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbBonusNoOfNewShares" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ErrorMessage="Please enter the No of New Shares Listed"
                                ControlToValidate="txbBonusNoOfNewShares" Display="Dynamic" SetFocusOnError="True"
                                ValidationGroup="g1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
                <div style="height: 5px; float: left; width: 20px;">
                </div>
                <table style="font-size: smaller; float: left;">
                    <tr>
                        <td style="width: 170px">
                            *XD
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbBonusXD" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ErrorMessage="Please enter the XD"
                                ControlToValidate="txbBonusXD" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            *Issue Date
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbBonusIssueDate" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ErrorMessage="Please enter the Bonus Issue Date"
                                ControlToValidate="txbBonusIssueDate" Display="Dynamic" SetFocusOnError="True"
                                ValidationGroup="g1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Remarks
                        </td>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txbBonusRemarks" runat="server" TextMode="MultiLine" Width="350px"
                                            Height="100px"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="btnBonusIssueSave" runat="server" Text="Save" OnClick="btnBonusIssueSave_Click"
                                ValidationGroup="g1" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </div>
    </div>
    <br />
    <div class="horizontal_space_15px">
    </div>
    <div class="separator">
    </div>
    <div class="form_left">
        <div style="text-align: center; float: left;">
            <asp:Panel ID="pnlRightsIssues" runat="server" Font-Size="Medium" GroupingText="Overview Rights Issue Announcements">
                <div style="padding: 5px;">
                    <asp:DataList ID="dlRightsIssues" DataKeyField="CompanyId" runat="server" Visible="true"
                        RepeatDirection="Horizontal" CellPadding="0" CellSpacing="0" Font-Size="Small"
                        ItemStyle-BackColor="#F6F4F5" ItemStyle-BorderColor="#6B6B6B" ItemStyle-BorderWidth="1px"
                        HeaderStyle-BackColor="#444444" HeaderStyle-Height="50px" RepeatColumns="1" RepeatLayout="Flow">
                        <AlternatingItemStyle BackColor="#F9F9F9" />
                        <HeaderTemplate>
                            <div style="padding-bottom: 0px; margin: 0px; color: White;">
                                <div style="width: 70px; float: left; text-align: center; font-weight: bold; padding-left: 5px;">
                                    Company Id</div>
                                <div style="width: 170px; float: left; text-align: center; font-weight: bold;">
                                    Name</div>
                                <div style="width: 100px; float: left; text-align: center; font-weight: bold;">
                                    Date of Announcement</div>
                                <div style="width: 90px; float: left; text-align: center; font-weight: bold;">
                                    Proportion<br />
                                    <div style="font-size: smaller">
                                        (per share)</div>
                                </div>
                                <div style="width: 90px; float: left; text-align: center; font-weight: bold;">
                                    Issue Value<br />
                                    <div style="font-size: smaller">
                                        (per share)</div>
                                </div>
                                <div style="width: 80px; float: left; text-align: center; font-weight: bold;">
                                    XD</div>
                                <div style="width: 90px; float: left; text-align: center; font-weight: bold;padding:0 5px 0 5px;">
                                    Trading Commencement Date</div>
                                <div style="width: 110px; float: left; text-align: center; font-weight: bold; padding:0 5px 0 5px;">
                                    Renunciation Date</div>
                                <div style="width: 80px; float: left; text-align: center; font-weight: bold;padding:0 5px 0 5px;">
                                    Acceptance/ Payment Date</div>
                                <div style="width: 242px; float: left; text-align: center; font-weight: bold;">
                                    Remarks</div>
                            </div>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <div style="float: none; margin-bottom: 0px; min-height: 15px; font-size: smaller;
                                text-align: center;">
                                <div style="width: 70px; float: left; text-align: center; min-height: 12px;">
                                    <label>
                                        <%# Eval("CompanyId")%></label></div>
                                <div style="width: 170px; float: left; min-height: 12px;">
                                    <label>
                                        <%# Eval("Name")%></label></div>
                                <div style="width: 100px; float: left; min-height: 12px; text-align: center;">
                                    <label>
                                        <%# ((DateTime)Eval("AnnouncedDate")).ToShortDateString() %></label></div>
                                <div style="width: 80px; float: left; text-align: right; min-height: 12px; padding: 0 10px 15px 0;">
                                    <label>
                                        <%# Eval("Propotion", "{0:0.00000}")%></label></div>
                                <div style="width: 80px; float: left; text-align: right; min-height: 12px; padding: 0 10px 15px 0;">
                                    <label>
                                        <%# Eval("ValuePerShare", "{0:0.00}")%></label></div>
                                <div style="width: 80px; float: left; min-height: 12px; padding-left: 2px; text-align: center;">
                                    <label>
                                        <%# ((DateTime)Eval("XD")).ToShortDateString() %></label></div>
                                <div style="width: 100px; float: left; min-height: 12px; padding-left: 2px; text-align: center;">
                                    <label>
                                        <%# ((DateTime)Eval("TradeCommencementDate")).ToShortDateString()%></label></div>
                                <div style="width: 120px; float: left; min-height: 12px; padding-left: 2px; text-align: center;">
                                    <label>
                                        <%# ((DateTime)Eval("RenunciationDate")).ToShortDateString()%></label></div>
                                <div style="width: 80px; float: left; min-height: 12px; text-align: center;padding:0 5px 0 5px;">
                                    <label>
                                        <%# ((DateTime)Eval("Payment")).ToShortDateString()%></label></div>
                                <div style="width: 240px; float: left; min-height: 12px;">
                                    <label>
                                        <%# Eval("Remarks")%></label></div>
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
                </div>
            </asp:Panel>
        </div>
        <br style="clear: both;" />
        <br />
        <div style="text-align: left;">
            <asp:ValidationSummary ID="ValidationSummary2" runat="server" ValidationGroup="g2" />
        </div>
        <div style="float: left;">
            <asp:Panel ID="pnlRightsAnnouncement" runat="server" GroupingText="Add New Rights Issue Announcement"
                Font-Size="Medium">
                <table style="font-size: smaller; float: left;" id="Table1">
                    <tr>
                        <td style="width: 170px">
                            *Company Id
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbRightCompId" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please enter the Company Id"
                                ControlToValidate="txbRightCompId" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g2">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            *Company Name
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbRightCompName" runat="server" TextMode="SingleLine" Width="325px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please enter the Company Name"
                                ControlToValidate="txbRightCompName" Display="Dynamic" SetFocusOnError="True"
                                ValidationGroup="g2">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            *Date of Announcement
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbRightAnnuDate" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please enter the Date od Announcement"
                                ControlToValidate="txbRightAnnuDate" Display="Dynamic" SetFocusOnError="True"
                                ValidationGroup="g2">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            *Propotion
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbRightPropotion" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Please enter the Propotion(per share)"
                                ControlToValidate="txbRightPropotion" Display="Dynamic" SetFocusOnError="True"
                                ValidationGroup="g2">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            *Issue Value<br />
                            <div style="font-size: smaller">
                                (per share)</div>
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbRightShareValue" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ErrorMessage="Please enter the Price of Issue(per share)"
                                ControlToValidate="txbRightShareValue" Display="Dynamic" SetFocusOnError="True"
                                ValidationGroup="g2">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
                <div style="height: 5px; float: left; width: 20px;">
                </div>
                <table style="font-size: smaller; float: left;">
                    <tr>
                        <td style="width: 170px">
                            *XD
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbRightXD" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please enter the XD"
                                ControlToValidate="txbRightXD" Display="Dynamic" SetFocusOnError="True" ValidationGroup="g2">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 170px">
                            *Trade Commencement Date
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbRightCommenceDate" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Please enter the XD"
                                ControlToValidate="txbRightCommenceDate" Display="Dynamic" SetFocusOnError="True"
                                ValidationGroup="g2">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 170px">
                            *Renunciation Date
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbRightRenunciationDate" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ErrorMessage="Please enter the XD"
                                ControlToValidate="txbRightRenunciationDate" Display="Dynamic" SetFocusOnError="True"
                                ValidationGroup="g2">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            *Acceptance/Payment Date
                        </td>
                        <td>
                            :
                            <asp:TextBox ID="txbRightAcceptanceDate" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Please enter the Payment Date"
                                ControlToValidate="txbRightAcceptanceDate" Display="Dynamic" SetFocusOnError="True"
                                ValidationGroup="g2">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Remarks
                        </td>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txbRightRemarks" runat="server" TextMode="MultiLine" Width="350px"
                                            Height="100px"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="btnRightsIssueSave" runat="server" Text="Save" OnClick="btnRightsIssueSave_Click"
                                ValidationGroup="g2" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </div>
    </div>
</asp:Content>
